class_name Camera
extends Camera2D


var _player: Player


func _ready():
	await get_tree().process_frame
	_player = Sundry.find_player(get_tree())


func _process(_delta: float):
	if is_instance_valid(_player):
		global_position = _player.global_position